package com.sdp.wx.view;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdp.core.bizc.annotation.ViewColumn;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ContractView extends Model<ContractView>{

	private static final long serialVersionUID = 1L;
	
	@ViewColumn("a.contract_code")
    private String contractCode;

    @ViewColumn("a.contract_name")
    private String contractName;

    @ViewColumn("a.contract_type")
    private String contractType;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ViewColumn("a.signed_date")
	private LocalDate signedDate;

    @ViewColumn("a.is_local")
    private String isLocal;

    @ViewColumn("a.party_a")
    private String partyA;

    @ViewColumn("a.actual_amount")
    private BigDecimal actualAmount;
    
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ViewColumn("a.create_time")
    private LocalDateTime createTime;
    
    /**
     * 是否维修完成
     */
    @ViewColumn("a.is_repair")
    private String isRepair;
    
    /**
     * 审批状态
     */
    @ViewColumn("a.approval_state")
    private String approvalState;
    
    /**
     * 实例ID
     */
    @ViewColumn("a.instance_id")
    private String instanceId;
    
    
    /**
     * 工时定额
     */
    @ViewColumn("a.hour_quota")
    private BigDecimal hourQuota;
    
    /**
     * 工时系数
     */
    @ViewColumn("a.hour_factor")
    private BigDecimal hourFactor;

    /**
     * 送修单位
     */
    @ViewColumn("b.send_repair_org")
    private String sendRepairOrg;

    /**
     * 型号
     */
    @ViewColumn("b.vehicle_model")
    private String vehicleModel;

    /**
     * 牌照号
     */
    @ViewColumn("b.plate_no")
    private String plateNo;

    /**
     * 底盘号
     */
    @ViewColumn("b.chassis_no")
    private String chassisNo;

    /**
     * 发动机号
     */
    @ViewColumn("b.engine_no")
    private String engineNo;

    /**
     * 车身颜色
     */
    @ViewColumn("b.vehicle_color")
    private String vehicleColor;

    /**
     * 出厂日期
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ViewColumn("b.factory_date")
    private LocalDate factoryDate;

    /**
     * 列装日期
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ViewColumn("b.use_date")
    private LocalDate useDate;

    /**
     * 行驶里程
     */
    @ViewColumn("b.run_km")
    private BigDecimal runKm;

    /**
     * 单价
     */
    @ViewColumn("b.unit_price")
    private BigDecimal unitPrice;
    
    
    /**
     * 预算
     */
    @ViewColumn("b.budget_amount")
    private BigDecimal budgetAmount;

    /**
     * 计量单位
     */
    @ViewColumn("b.measure_unit")
    private String measureUnit;

    /**
     * 联系人
     */
    @ViewColumn("b.contact_person")
    private String contactPerson;

    /**
     * 联系电话
     */
    @ViewColumn("b.contact_phone")
    private String contactPhone;

    /**
     * 维修状态
     */
    @ViewColumn("b.repair_status")
    private String repairStatus;
    
    /**
     * 维修类型
     */
    @ViewColumn("b.repair_type")
    private String repairType;
    
    /**
     * 维修厂
     */
    @ViewColumn("b.repair_factory")
    private String repairFactory;
    
    /**
     * 内码
     */
    @ViewColumn("b.key_id")
    private String keyId;
    
}
